package IO流.缓冲流.BufferedRead.Test01;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class BufferedReadTest01 {
    public static void main(String[] args) {
        //节点流
        FileReader reader = null;
        try {
            reader = new FileReader("D:\\Desktop\\IDEA\\javase\\src\\IO流\\文件复制演示\\Test02\\CopyTest02.java");
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        BufferedReader br = new BufferedReader(reader);

        try {
            String s;

            while((s = br.readLine()) != null){
                System.out.println(s);
            }

            br.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
